package com.ruoyi.system.monitortask.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.monitortask.vo.MonitorTaskGoodsVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 账号监控任务表(monitor_task)表实体类
 *
 * @author zyy
 * @date 2024-06-21 15:19:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("monitor_task")
public class MonitorTask {

    @TableId(type = IdType.AUTO)
    @Excel(name = "${column.comment}")
    private Long id;

    /**
     * 创建人id
     */
    @Excel(name = "创建人id")
    private Long createId;
    /**
     * 创建人
     */
    @Excel(name = "创建人")
    @TableField(exist = false)
    private String createName;
    /**
     * 修改人id
     */
    @Excel(name = "修改人id")
    private Long updateId;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 监控名称
     */
    @Excel(name = "监控名称")
    private String name;

    /**
     * 类型1掉绑监控 2转手监控
     */
    @Excel(name = "类型1掉绑监控 2转手监控")
    private Integer type;

    /**
     * 上次执行时间
     */
    @Excel(name = "上次执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastDate;

    /**
     * 间隔天数
     */
    @Excel(name = "间隔天数")
    private Integer intervalDays;

    /**
     * 1正常 2禁用
     */
    @Excel(name = "1正常 2禁用")
    private Integer state;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;


    /**
     * 是否分页 2不分页
     */
    @TableField(exist = false)
    private Integer isPage;

    @TableField(exist = false)
    private List<MonitorTaskGoodsVo> monitorTaskGoodsVoList;

}
